<include file="../header" />
<div class="wrapper">
    <div class="main">
        <div class="header text-center font-16">
            智能报修
            <div class="iconfont icon-zuo go_back"></div>
        </div>
        <div class="history-list">
            <volist name="data" id="vo">
                <div class="list order_list" data-id="{BEESCRM:$vo.order_id}">
                    <div>
                        <if condition="$vo['type'] eq 3">
                            <span class="everyday green-bg">快捷</span>
                        <elseif condition="$vo['type'] eq 2"/>
                            <span class="everyday red-bg">公共</span>
                        <else/>
                            <span class="everyday">日常</span>
                        </if>
                        <span>{BEESCRM:$vo.content}</span>
                    </div>
                    <div>
                        <span class="gray font-12">
                            {BEESCRM:$vo.create_time|date="Y-m-d",###}
                        </span>
                        <span class="pull-right orange">
                            <if condition="$vo['status'] eq 0">
                                已取消
                            <elseif condition="$vo['status'] eq 1"/>
                                已下单
                            <elseif condition="$vo['status'] eq 2"/>
                                已指派
                            <elseif condition="$vo['status'] eq 3"/>
                                已接单
                            <elseif condition="$vo['status'] eq 4"/>
                                已挂单
                            <elseif condition="$vo['status'] eq 5"/>
                                已维修
                            <elseif condition="$vo['status'] eq 6"/>
               	                已评价
                            </if>
                        </span>
                    </div>
                </div>
            </volist>
        </div>
    </div>
    <div class="flex add text-center Bottom-btn">
        <a href="/Repaireast/Repaireast/index" class="bottom-btn">
            <span class="iconfont icon-baoxiu"></span>
            <p class="">我要报修</p>
        </a>
        <a href="#" class="bottom-btn">
            <span class="iconfont icon-wodebaoxiudan"></span>
            <p class="">历史报修</p>
        </a>
        <if condition="$accountId neq 38">
            <if condition="$hasPosition eq 1 OR $hasPosition eq 2">
                <a href="/Repaireast/Repaireast/tips" class="bottom-btn">
                    <span class="iconfont icon-wodebaoxiudan"></span>
                    <p class="">我是维修人员</p>
                </a>
                <else/>
                <a href="/Repaireast/Repaireast/applys" class="bottom-btn">
                    <span class="iconfont icon-wodebaoxiudan"></span>
                    <p class="">我是维修人员</p>
                </a>
            </if>
        </if>
    </div>
</div>
<script type="text/javascript">
    $('.order_list').click(function(){
        var id = $(this).data('id');
        var url = '/Repaireast/RepaireastRepair/orderDetail/order_id/'+id+'/is_history/1';
        window.location.href = url;
    });
</script>
<include file="../footer" />